//
//  FindMinMaxThread.m
//  simple-code-oc
//
//  Created by iGaven on 2023/12/12.
//

#import "FindMinMaxThread.h"

@interface FindMinMaxThread ()

@property (nonatomic) NSUInteger min;
@property (nonatomic) NSUInteger max;

@end

@implementation FindMinMaxThread {
    NSArray *_numbers;
}

- (void)dealloc {
    NSLog(@"############ dealloc");
}

- (instancetype)initWithNumbers:(NSArray *)numbers
{
    self = [super init];
    if (self) {
        _numbers = numbers;
    }
    return self;
}

- (void)main
{
    NSUInteger min;
    NSUInteger max;
    // 进行相关数据的处理
    sleep(30.0);
    self.min = min;
    self.max = max;
}

@end
